package com.xw.dao;

import com.xw.model.News;
import com.xw.util.MyMapper;
import com.xw.vo.NewsVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface NewsMapper extends MyMapper<News> {
    List<NewsVo> findByWhere(@Param("newsName") String newsName);

    List<NewsVo> findNews();

    NewsVo findNewsById(@Param("id") String id);
}